import request from '@/utils/request.js'

export function getLeftTopChartData() {
    return request({
        url: '/admin/dataScreen/leftTopChart',
        method: 'GET',
    })
}

export function getLeftTopMainChartData() {
    return request({
        url: '/admin/dataScreen/leftTopMainChart',
        method: 'GET',
    })
}

export function getLeftCenterChartData(ages) {
    return request({
        url: '/admin/dataScreen/leftCenterChart',
        method: 'GET',
        params: {
            ages:ages.join(',')//不加逗号找不到
        },
    })
}

export function getLeftCenterMainChartData(ages) {
    return request({
        url: '/admin/dataScreen/leftCenterMainChart',
        method: 'GET',
        params: {
            ages:ages.join(',')//不加逗号找不到
        },
    })
}

export function getLeftBottomChartData() {
    return request({
        url: '/admin/dataScreen/leftBottomChart',
        method: 'GET',
    })
}

export function getLeftBottomMainChartData() {
    return request({
        url: '/admin/dataScreen/leftBottomMainChart',
        method: 'GET',
    })
}